"""
#2 将多个CSV文件合并为一个CSV,切记将分csv的表头删掉再合并
"""


import os
import pandas as pd
import glob

json_list = glob.glob('../Data/part-*.json')
print(u'共发现%s个JSON文件'%len(json_list))

for i in json_list: #循环读取同文件夹下的csv文件
    fr = open(i,'rb').read()
    with open('../Data/part.json', 'ab') as f:
        f.write(fr)
print(u'合并完毕')

